package com.chapter13.MyCollection.MyList.MyLinkList;

public class test2 {
    public static void main(String[] args) {
        MyQueue<String> myQueue = new MyQueue<String>();
        myQueue.offer("one");
        myQueue.offer("two");
        myQueue.offer("three");
        System.out.println(myQueue.poll());
        System.out.println(myQueue.peek());
        System.out.println(myQueue.poll());
        System.out.println(myQueue.poll());

        System.out.println(myQueue.isEmpty());

    }
}
